﻿<%@ Page Title="Search Page" Language="C#" MasterPageFile="~/pages/MainPage.Master" AutoEventWireup="true" CodeBehind="SearchPage.aspx.cs" Inherits="SE560Multimedia.pages.WebForm2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">

    .style4
    {
        font-family: Arial;
        font-size: small;
            text-align: left;
        }
        .style5
        {
        }
        .style6
        {
            font-family: Arial;
            font-size: small;
            text-align: center;
            font-weight: bold;
        }
    </style>
</asp:Content>
<asp:Content ID="ContentSearch" ContentPlaceHolderID="MainContentPlaceHolder" 
    runat="server">
    <table style="width:300px;">
        <tr>
            <td class="style6" colspan="2" 
                style="color: #FFFFFF; background-color: #5D7B9D">
                Search</td>
        </tr>
        <tr>
            <td class="style5" style="background-color: #F7F6F3">
            <asp:Label ID="LabelArtistName" runat="server" Text="Artist Name" 
                CssClass="style4"></asp:Label>
            </td>
            <td style="background-color: #F7F6F3">
            <asp:TextBox ID="TextBoxArtistName" runat="server" CssClass="style4" 
                    BorderColor="#CCCCCC" BorderStyle="Solid"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="style5" style="background-color: #F7F6F3">
            <asp:Label ID="LabelMediaName" runat="server" Text="Media Name" 
                CssClass="style4"></asp:Label>
            </td>
            <td style="background-color: #F7F6F3">
            <asp:TextBox ID="TextBoxMediaName" runat="server" CssClass="style4" 
                    BorderColor="#CCCCCC" BorderStyle="Solid"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="style5" style="background-color: #F7F6F3">
            <asp:Label ID="LabelAlbumName" runat="server" Text="Album Name" 
                CssClass="style4"></asp:Label>
            </td>
            <td style="background-color: #F7F6F3">
            <asp:TextBox ID="TextBoxAlbumName" runat="server" CssClass="style4" 
                    BorderColor="#CCCCCC" BorderStyle="Solid"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="style5" colspan="2">
                <asp:Button ID="ButtonSearch" runat="server" onclick="ButtonSearch_Click" 
                    Text="Search" BackColor="#FFFBFF" BorderColor="#CCCCCC" 
                    BorderStyle="Solid" ForeColor="#284775" />
            </td>
        </tr>
        <tr>
            <td class="style5" colspan="2">
            <asp:Label ID="LabelSearchResult" runat="server" 
                CssClass="style4"></asp:Label>
            </td>
        </tr>
        <tr>
            <td class="style5" colspan="2">
                &nbsp;</td>
        </tr>
                <asp:GridView ID="GridViewSearchResult" runat="server" AllowPaging="True" 
                    AllowSorting="True" CellPadding="4" ForeColor="#333333" GridLines="Vertical" 
                    onrowcommand="GridViewSearchResult_RowCommand" 
                    style="font-family: Arial; font-size: small" 
            AutoGenerateColumns="False">
                    <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                    <Columns>
                        <asp:BoundField DataField="MEDIA_NAME" HeaderText="Name" />
                        <asp:BoundField DataField="MEDIA_ALBUM_NAME" HeaderText="Album Name" />
                        <asp:BoundField DataField="MEDIA_ARTIST_NAME" HeaderText="Artist Name" />
                        <asp:ButtonField ButtonType="Button" CommandName="ResultListPlayCommand" 
                            Text="Play" >
                        <ControlStyle BackColor="#FFFBFF" BorderColor="#CCCCCC" BorderStyle="Solid" 
                            ForeColor="#284775" />
                        </asp:ButtonField>
                    </Columns>
                    <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                    <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                    <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                    <EditRowStyle BackColor="#999999" />
                    <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                </asp:GridView>
    </table>
</asp:Content>
